<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="appointment.title"/></title>
    <meta name="heading" content="<fmt:message key='appointment.list.heading'/>"/>
    <meta name="menu" content="ToolsMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editAppointment"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="appointments" class="table" requestURI="" id="appointment" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editAppointment" media="html"
        paramId="id" paramProperty="id" titleKey="appointment.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="appointment.id"/>
    <display:column property="occasion" sortable="true" titleKey="appointment.occasion"/>
    <display:column property="appDate" sortable="true" titleKey="appointment.appDate"/>
    <display:column property="completionF" sortable="true" titleKey="appointment.compl.flag"/>
	<display:column property="comments" sortable="true" titleKey="appointment.comments"/>

	<!-- No records found custom message creation  -->
    <display:setProperty name="paging.banner.item_name"><fmt:message key="appointmentList.appointment"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="appointmentList.appointments"/></display:setProperty>

 	<display:setProperty name="export.excel.filename"><fmt:message key="appointment.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="appointment.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="appointment.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/saveAppointment"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("personList");
</script>